<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:xls="http://www.w3.org/1999/XSL/Transform"
                xmlns:php="http://php.net/xsl">
    <xsl:param name="owner" select="'Nicolas Eliaszewicz'"/>
    <xsl:output method="text" encoding="utf-8" indent="no"/>

    <xsl:template match="//database">
&lt;?php

namespace Databases\Tables\<xls:value-of select="php:function('ucfirst',string(@name))" />;
use Database\Table\ITable;
        <xsl:for-each select="//database//table">

class <xsl:value-of select="php:function('ucfirst',string(@name))" /> implements ITable {

    public function getName () {
        return <xsl:value-of select="php:function('var_export', string(@name), 1)" />;
    }

}</xsl:for-each>
    </xsl:template>

</xsl:stylesheet>